package it.greg.findparty.model;

import it.greg.findparty.util.map.MapUtil;

import java.util.HashMap;
import java.util.Map;

public class OrdinaEventi {
	
	private Map<Evento,Integer> evento2distance;
	
	public OrdinaEventi() {
		this.evento2distance = new HashMap<Evento,Integer>();
	}
	
	public void addEvento(Evento e,Integer distance) {
		this.evento2distance.put(e,distance);
	}
	
	public Map<Evento,Integer> getOrderedMap() {
		return MapUtil.sortByValue(this.evento2distance);
	}

	
}
